package Leo.schedule;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
public class ScheduleConfig {

//    @Scheduled(initialDelay = 2000,fixedRate = 5000)
//    public void tt() throws Exception{
//        System.out.println("启动后延迟2秒运行");
//    }
//
//    @Scheduled(fixedRate = 10000)
//    public void t2t() throws Exception{
//        System.out.println("一启动时就运行");
//    }
}
